package com.glsc.ngateway.common.base.repo.mysql.cmdb;

import com.glsc.ngateway.common.base.domain.mysql.cmdb.CmdbTableSequence;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CmdbTableSequenceRepository extends JpaRepository<CmdbTableSequence, Integer>, JpaSpecificationExecutor<CmdbTableSequence> {
    List<CmdbTableSequence> findAllByIdIn(List<Long> id);

    CmdbTableSequence findOneByFromTableAndYear(String fromTable, int year);
}

